package com.atguig.g_othernew;

import java.io.FileWriter;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) {
        //JDK7之前
        FileWriter fw = null;
        try{
            fw = new FileWriter("目标文件地址");
            //...这里有错呢 ???

        }catch (IOException e){

        }finally {
            if (fw != null){
                try {
                    fw.close();
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
        }
    }
}
